﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraReports.UI;

namespace Waker.Reports
{
    public partial class FormReport : Base.FormBase
    {
        XtraReport _Report;
        public FormReport(XtraReport rpt)
        {
            InitializeComponent();
            _Report = rpt;
        }

        private void FormReport_Load(object sender, EventArgs e)
        {
            if (_Report != null)
            {
                this.printControl1.PrintingSystem = _Report.PrintingSystem;
                _Report.CreateDocument();
            }
        }
    }
}
